.class Llt/noframe/gpsfarmguide/views/FragmentSettings$2;
.super Ljava/lang/Object;
.source "FragmentSettings.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/FragmentSettings;->showSelected()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentSettings;)V
    .locals 0

    .line 174
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
    .locals 1

    .line 177
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    const-string v0, "area_shown_as_polyline"

    invoke-virtual {p1, v0}, Lcom/github/machinarius/preferencefragment/PreferenceFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object p1

    check-cast p2, Ljava/lang/Boolean;

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p2

    invoke-virtual {p1, p2}, Landroid/preference/Preference;->setEnabled(Z)V

    const/4 p1, 0x1

    return p1
.end method
